﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Template.Master" ValidateRequest="false" %>

<script runat="server">
    void Page_Load(object sender, EventArgs e)
    {
        if (Request["lang"] != null)
        {
            Session.Add("langID", Request["lang"]);
            switch (Session["langID"].ToString())
            {
                case "1":
                    {
                        Response.Redirect("~/ru/main.aspx");
                        break;
                    }
                case "2":
                    {
                        Response.Redirect("~/en/main.aspx");
                        break;
                    }
                case "3":
                    {
                        Response.Redirect("~/ua/main.aspx");
                        break;
                    }                                       
            }
            
        }
    }
</script>


